<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
      integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
        integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    <script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=FoGZFYz3bEmzIganqCN7RwmScui2lfSr"></script>
    <script type="text/javascript" src="//api.map.baidu.com/library/Heatmap/2.0/src/Heatmap_min.js"></script>
    <title>热力图功能示例</title>
    <style type="text/css">
		ul,li{list-style: none;margin:0;padding:0;float:left;}
		html{height:100%}
		body{height:100%;margin:0px;padding:0px;font-family:"微软雅黑";}
		#container{height: 90%;width:100%;}
		#r-result{width:100%;}
    </style>
</head>
<body>
	<div id="container"></div>
	<div id="r-result">
		<input type="button" class="btn-success" onclick="openHeatmap();" value="显示热力图"/>
        <input type="button" class="btn-warning" onclick="closeHeatmap();" value="关闭热力图"/>
	</div>
</body>
</html>
<script type="text/javascript">
    var map = new BMap.Map("container");          // 创建地图实例

    var point = new BMap.Point(116.418261, 39.921984);
    map.centerAndZoom(point, 15);             // 初始化地图，设置中心点坐标和地图级别
    map.enableScrollWheelZoom();   // 允许滚轮缩放

    // 将下面参数替换为你的坐标数据
    var points =[{'lng': 142.427995, 'lat': 43.418149, 'count': 60}, {'lng': 103.714815, 'lat': 30.712283, 'count': 0}, {'lng': 140.9699651, 'lat': 43.1676311218584, 'count': 69}, {'lng': 128.12868580389, 'lat': 42.435379305378, 'count': 60}, {'lng': 151.266460478306, 'lat': -33.8732733633383, 'count': 44}, {'lng': 106.501752, 'lat': 30.180031, 'count': 10}, {'lng': 135.86696962507, 'lat': 34.3604331822226, 'count': 89}, {'lng': 139.733833, 'lat': 35.662029, 'count': 53}, {'lng': 139.7631443, 'lat': 35.6365639, 'count': 86}, {'lng': 147.699192181229, 'lat': -18.2870671744257, 'count': 59}, {'lng': 2.18985892402929, 'lat': 41.3863324603993, 'count': 83}, {'lng': 144.9619114021, 'lat': -37.8429355385701, 'count': 64}, {'lng': 151.1925959, 'lat': -33.873102, 'count': 81}, {'lng': -0.213193, 'lat': 51.434006, 'count': 90}, {'lng': 2.17158530000006, 'lat': 41.3817399, 'count': 40}, {'lng': 116.404015, 'lat': 39.912729, 'count': 4073}, {'lng': 118.104774, 'lat': 24.443313, 'count': 424}, {'lng': 117.284212, 'lat': 42.490725, 'count': 18}, {'lng': 135.785055555555, 'lat': 34.9948888888889, 'count': 4}, {'lng': -0.0759489647239207, 'lat': 51.5081121913229, 'count': 4}, {'lng': -0.126956599999971, 'lat': 51.5194133, 'count': 12}, {'lng': 135.7726717, 'lat': 34.9671402, 'count': 22}, {'lng': 135.666777777778, 'lat': 35.0094722222222, 'count': 18}, {'lng': 135.500377535276, 'lat': 34.6750560970867, 'count': 4}, {'lng': -0.0983506000000034, 'lat': 51.5138453, 'count': 2}, {'lng': 135.748693086272, 'lat': 35.0142326459435, 'count': 8}, {'lng': -0.128067992627621, 'lat': 51.5080388192036, 'count': 66}, {'lng': 135.7292431, 'lat': 35.03937, 'count': 2}, {'lng': 126.445548, 'lat': 42.374673, 'count': 36}, {'lng': 151.2766845, 'lat': -33.8914755, 'count': 46}, {'lng': 135.831496, 'lat': 35.116849, 'count': 6}, {'lng': 135.67375, 'lat': 35.0156666666667, 'count': 35}, {'lng': 135.831496, 'lat': 35.116849, 'count': 4}, {'lng': 135.67375, 'lat': 35.0156666666667, 'count': 83}, {'lng': 109.654555, 'lat': 18.236153, 'count': 2678}, {'lng': 110.455575, 'lat': 36.151234, 'count': 1058}, {'lng': 109.607088, 'lat': 27.953295, 'count': 424}, {'lng': 117.029659, 'lat': 36.679466, 'count': 50}, {'lng': 106.658248, 'lat': 23.029389, 'count': 208}, {'lng': 124.405801, 'lat': 40.126081, 'count': 136}, {'lng': 112.463855, 'lat': 23.072985, 'count': 50}, {'lng': 122.191552, 'lat': 42.828173, 'count': 14}, {'lng': 124.327172, 'lat': 45.226633, 'count': 95}, {'lng': 116.403347, 'lat': 39.922148, 'count': 22433}, {'lng': 110.088712, 'lat': 34.532247, 'count': 4146}, {'lng': 118.193977, 'lat': 30.097967, 'count': 3837}, {'lng': 112.190081, 'lat': 37.21041, 'count': 1464}, {'lng': 117.992764, 'lat': 27.631146, 'count': 2147}, {'lng': 88.139294, 'lat': 43.894016, 'count': 2777}, {'lng': 110.438282, 'lat': 25.153169, 'count': 1366}, {'lng': 120.102895, 'lat': 31.436399, 'count': 1762}, {'lng': 120.345446, 'lat': 29.162213, 'count': 27344}, {'lng': 113.433752, 'lat': 35.426392, 'count': 1172}, {'lng': 118.860335, 'lat': 32.063934, 'count': 988}, {'lng': 117.12107, 'lat': 36.247343, 'count': 642}, {'lng': 128.079743, 'lat': 42.025855, 'count': 476}, {'lng': 110.206451, 'lat': 18.582197, 'count': 806}, {'lng': 113.596375, 'lat': 38.984397, 'count': 812}, {'lng': 106.73464, 'lat': 22.858947, 'count': 544}, {'lng': 117.940068, 'lat': 41.002781, 'count': 644}, {'lng': 113.745153, 'lat': 25.0304, 'count': 532}, {'lng': 117.861924, 'lat': 29.247904, 'count': 160}, {'lng': 115.391843, 'lat': 39.674643, 'count': 208}, {'lng': 111.681287, 'lat': 36.275181, 'count': 378}, {'lng': -0.0753561647238712, 'lat': 51.5054557739321, 'count': 36}, {'lng': -0.128498, 'lat': 51.499446, 'count': 88}, {'lng': 115.973929, 'lat': 38.947949, 'count': 204}, {'lng': 100.270093, 'lat': 27.034011, 'count': 1188}, {'lng': 112.44405, 'lat': 37.41108, 'count': 466}, {'lng': 119.318898, 'lat': 26.103528, 'count': 75}, {'lng': 110.459244, 'lat': 29.336908, 'count': 2955}, {'lng': 117.02264, 'lat': 36.667808, 'count': 936}, {'lng': 100.799558, 'lat': 27.668458, 'count': 2496}, {'lng': 123.74814, 'lat': 41.873276, 'count': 344}, {'lng': 122.012502, 'lat': 39.091863, 'count': 398}, {'lng': 2.17776890000005, 'lat': 41.3758075, 'count': 80}, {'lng': 109.531847, 'lat': 18.228007, 'count': 218}, {'lng': 109.218903, 'lat': 34.369881, 'count': 2975}, {'lng': 110.495524807, 'lat': 29.3586909615, 'count': 4}, {'lng': 126.273336, 'lat': 41.208273, 'count': 98}, {'lng': 110.458711, 'lat': 36.136265, 'count': 930}, {'lng': 109.266029, 'lat': 34.386024, 'count': 10800}, {'lng': 118.795398, 'lat': 32.026977, 'count': 538}, {'lng': 115.392307, 'lat': 39.672927, 'count': 190}, {'lng': 128.184947, 'lat': 42.192921, 'count': 2427}, {'lng': 109.451034, 'lat': 18.292751, 'count': 360}, {'lng': 107.109485, 'lat': 24.305278, 'count': 52}, {'lng': 121.122449, 'lat': 28.38293, 'count': 10}, {'lng': 117.041792, 'lat': 36.644733, 'count': 902}, {'lng': 112.561202, 'lat': 23.165899, 'count': 744}, {'lng': 118.867154, 'lat': 39.122833, 'count': 118}, {'lng': 115.352505, 'lat': 39.355767, 'count': 92}, {'lng': 109.770938, 'lat': 18.319925, 'count': 4260}, {'lng': 117.444889, 'lat': 23.717796, 'count': 184}, {'lng': 117.137797, 'lat': 36.200222, 'count': 52}, {'lng': 110.62123, 'lat': 29.368648, 'count': 798}, {'lng': 118.113008, 'lat': 24.435089, 'count': 1006}, {'lng': 120.718666, 'lat': 40.629181, 'count': 68}, {'lng': 120.75361, 'lat': 40.575056, 'count': 35}, {'lng': 116.404487, 'lat': 40.000484, 'count': 3183}, {'lng': 117.198268, 'lat': 39.149537, 'count': 338}, {'lng': 119.323175, 'lat': 31.786851, 'count': 390}, {'lng': 117.202575, 'lat': 39.124825, 'count': 84}, {'lng': 121.074048, 'lat': 28.378688, 'count': 43}, {'lng': 107.125408, 'lat': 24.233085, 'count': 20}, {'lng': 111.881551, 'lat': 36.902417, 'count': 908}, {'lng': 116.03293, 'lat': 40.369733, 'count': 11989}, {'lng': 110.482089, 'lat': 29.072408, 'count': 4264}, {'lng': 116.276887, 'lat': 39.999497, 'count': 6109}, {'lng': 112.49929183336, 'lat': 27.91367277469, 'count': 12}, {'lng': 121.060234, 'lat': 28.354889, 'count': 6}, {'lng': 104.152603, 'lat': 30.738951, 'count': 10193}, {'lng': 109.659829, 'lat': 18.25797, 'count': 5937}, {'lng': 118.803688, 'lat': 32.049877, 'count': 3440}, {'lng': 115.18275, 'lat': 39.149357, 'count': 366}, {'lng': 117.286958, 'lat': 40.100119, 'count': 474}, {'lng': 117.934532, 'lat': 27.643093, 'count': 1128}, {'lng': 116.316176, 'lat': 39.997741, 'count': 38}, {'lng': 117.039676, 'lat': 36.668445, 'count': 14}, {'lng': 117.187836, 'lat': 39.147399, 'count': 14}, {'lng': 109.379826, 'lat': 18.239896, 'count': 1098}, {'lng': 118.75312, 'lat': 32.099764, 'count': 334}, {'lng': 110.470633, 'lat': 29.131172, 'count': 80}, {'lng': 112.49848, 'lat': 27.910957, 'count': 118}, {'lng': 117.995474, 'lat': 30.010385, 'count': 6913}, {'lng': 119.027854, 'lat': 29.605088, 'count': 1938}, {'lng': 116.404158, 'lat': 39.909201, 'count': 872}, {'lng': 117.12109733113, 'lat': 36.248238489199, 'count': 18}, {'lng': 117.501168, 'lat': 42.326075, 'count': 4}, {'lng': 120.449481, 'lat': 36.07508, 'count': 3809}, {'lng': 104.69184, 'lat': 31.92708, 'count': 862}, {'lng': 118.748954, 'lat': 32.040883, 'count': 128}, {'lng': 112.644994, 'lat': 37.549626, 'count': 540}, {'lng': 117.284641, 'lat': 40.660322, 'count': 338}, {'lng': 128.737748, 'lat': 44.090202, 'count': 58}, {'lng': 121.50626, 'lat': 31.245369, 'count': 3233}, {'lng': 119.768109, 'lat': 40.012102, 'count': 1354}, {'lng': 113.146296, 'lat': 23.849317, 'count': 400}, {'lng': 110.54340512, 'lat': 29.2394061761, 'count': 30}, {'lng': 151.2152967, 'lat': -33.8567844, 'count': 89}, {'lng': 117.040064, 'lat': 36.668997, 'count': 4}, {'lng': 104.040108, 'lat': 30.729181, 'count': 1454}, {'lng': 117.541012, 'lat': 23.742962, 'count': 492}, {'lng': 117.958959, 'lat': 41.022896, 'count': 90}, {'lng': 124.370673, 'lat': 40.124071, 'count': 50}, {'lng': 120.007837, 'lat': 31.83031, 'count': 1814}, {'lng': 121.54785, 'lat': 31.224219, 'count': 1768}, {'lng': 114.689055, 'lat': 39.236145, 'count': 1942}, {'lng': 113.993478, 'lat': 22.538498, 'count': 2103}, {'lng': 113.990656, 'lat': 22.540551, 'count': 492}, {'lng': 118.100406, 'lat': 24.459148, 'count': 732}, {'lng': 113.62679, 'lat': 22.634301, 'count': 186}, {'lng': 119.729198068, 'lat': 25.4667447909, 'count': 110}, {'lng': 100.260971, 'lat': 27.104797, 'count': 234}, {'lng': 117.955861, 'lat': 27.64399, 'count': 36}, {'lng': 113.227718, 'lat': 35.4026, 'count': 24}, {'lng': 117.958803, 'lat': 27.656036, 'count': 102}, {'lng': 151.202211035276, 'lat': -33.8700138, 'count': 16}, {'lng': 127.094599, 'lat': 43.656198, 'count': 4}, {'lng': 151.20876, 'lat': -33.870451, 'count': 20}, {'lng': 112.49857424029, 'lat': 27.910913378179, 'count': 152}, {'lng': 151.241928, 'lat': -33.857506, 'count': 62}, {'lng': 119.752414, 'lat': 29.855637, 'count': 20}, {'lng': 112.333965, 'lat': 37.363621, 'count': 12}, {'lng': 118.442196, 'lat': 29.87174, 'count': 80}, {'lng': 151.2009, 'lat': -33.8748802783652, 'count': 51}, {'lng': 151.216569632292, 'lat': -33.8641849762996, 'count': 64}, {'lng': 151.211273193359, 'lat': -33.8731368400047, 'count': 86}, {'lng': 128.271663, 'lat': 41.674067, 'count': 57}, {'lng': 151.211273193359, 'lat': -33.8731368400047, 'count': 61}, {'lng': 123.633842, 'lat': 39.883769, 'count': 6}, {'lng': 116.500803, 'lat': 39.873539, 'count': 3002}, {'lng': 116.34331, 'lat': 39.947983, 'count': 2462}, {'lng': 113.770364, 'lat': 23.586481, 'count': 1104}, {'lng': 113.058971, 'lat': 28.24039, 'count': 382}, {'lng': 121.061605, 'lat': 31.116917, 'count': 244}, {'lng': 115.606468, 'lat': 39.644162, 'count': 284}, {'lng': 124.078062, 'lat': 40.403008, 'count': 130}, {'lng': 117.947214, 'lat': 24.564469, 'count': 82}, {'lng': 117.550909, 'lat': 40.203451, 'count': 266}, {'lng': 117.219223, 'lat': 35.518329, 'count': 778}, {'lng': 118.046452, 'lat': 29.819613, 'count': 152}, {'lng': 107.017951, 'lat': 24.309773, 'count': 36}, {'lng': 104.123459, 'lat': 35.832808, 'count': 50}, {'lng': 108.634832, 'lat': 39.817608, 'count': 78}, {'lng': 121.728112, 'lat': 31.059636, 'count': 4684}, {'lng': 113.294206, 'lat': 22.883542, 'count': 1086}, {'lng': 114.29107, 'lat': 31.183857, 'count': 510}, {'lng': 109.677278, 'lat': 18.466556, 'count': 376}, {'lng': 110.305678, 'lat': 25.289462, 'count': 516}, {'lng': 107.207362, 'lat': 29.104603, 'count': 270}, {'lng': 115.983665, 'lat': 38.951428, 'count': 28}, {'lng': 123.725089, 'lat': 41.160826, 'count': 614}, {'lng': 116.40066, 'lat': 39.90536, 'count': 1514}, {'lng': 109.95547, 'lat': 28.751383, 'count': 162}, {'lng': 119.224824, 'lat': 29.595154, 'count': 308}, {'lng': 127.50739832476, 'lat': 45.509632182087, 'count': 10}, {'lng': 118.686854, 'lat': 25.772862, 'count': 82}, {'lng': 112.351923, 'lat': 27.985351, 'count': 16}, {'lng': 119.307379, 'lat': 26.066784, 'count': 76}, {'lng': 109.677516, 'lat': 36.321241, 'count': 38}, {'lng': 121.357731, 'lat': 31.163619, 'count': 95}, {'lng': 117.948778, 'lat': 41.015751, 'count': 72}, {'lng': 115.440756, 'lat': 39.725681, 'count': 91}, {'lng': 117.166942, 'lat': 39.10528, 'count': 60}, {'lng': 117.104275, 'lat': 39.144013, 'count': 90}, {'lng': 115.978321, 'lat': 38.952417, 'count': 91}, {'lng': 122.448527, 'lat': 30.726781, 'count': 96}, {'lng': 119.86898, 'lat': 30.605073, 'count': 6}, {'lng': 115.978321, 'lat': 38.952417, 'count': 34}, {'lng': 109.223096, 'lat': 34.370575, 'count': 928}, {'lng': 116.001343, 'lat': 40.359586, 'count': 338}, {'lng': 116.312665, 'lat': 39.924769, 'count': 174}, {'lng': 115.759374, 'lat': 39.664533, 'count': 594}, {'lng': 117.172205, 'lat': 40.689651, 'count': 190}, {'lng': 128.307566, 'lat': 42.860855, 'count': 71}, {'lng': 116.342645, 'lat': 39.50183, 'count': 3814}, {'lng': 117.254089, 'lat': 40.266748, 'count': 3961}, {'lng': 110.701465, 'lat': 29.432415, 'count': 1366}, {'lng': 121.403563, 'lat': 31.230472, 'count': 1254}, {'lng': 116.2937, 'lat': 39.816749, 'count': 538}, {'lng': 119.54357, 'lat': 39.827324, 'count': 1052}, {'lng': 116.347505, 'lat': 39.95032, 'count': 758}, {'lng': 117.815028, 'lat': 39.162205, 'count': 448}, {'lng': 120.234402, 'lat': 30.149455, 'count': 616}, {'lng': 119.544946, 'lat': 29.89202, 'count': 202}, {'lng': 119.025164, 'lat': 25.827617, 'count': 176}, {'lng': 116.008255, 'lat': 40.556509, 'count': 4}, {'lng': 100.276078, 'lat': 26.766885, 'count': 44}, {'lng': 119.538171, 'lat': 29.930643, 'count': 160}, {'lng': 118.625539, 'lat': 29.868306, 'count': 96}, {'lng': 103.268238, 'lat': 30.569815, 'count': 10}, {'lng': 117.101026, 'lat': 39.144691, 'count': 10}, {'lng': 118.003549, 'lat': 29.91024, 'count': 5674}, {'lng': 116.57035, 'lat': 40.437612, 'count': 3249}, {'lng': 120.32228, 'lat': 29.138262, 'count': 418}, {'lng': 110.682101, 'lat': 25.588829, 'count': 38}, {'lng': 118.442455, 'lat': 29.871875, 'count': 134}, {'lng': 121.667917, 'lat': 31.149712, 'count': 47606}, {'lng': 113.544272, 'lat': 22.104641, 'count': 5149}, {'lng': 115.984178, 'lat': 40.446359, 'count': 6127}, {'lng': 121.915647, 'lat': 30.917713, 'count': 5017}, {'lng': 110.485702, 'lat': 29.122834, 'count': 5353}, {'lng': 118.704662, 'lat': 25.065398, 'count': 12}, {'lng': 117.267356, 'lat': 40.650895, 'count': 2322}, {'lng': 109.536751, 'lat': 18.296306, 'count': 1946}, {'lng': 120.079209, 'lat': 31.419262, 'count': 1784}, {'lng': 109.749389, 'lat': 18.362882, 'count': 1290}, {'lng': 121.852044, 'lat': 40.90826, 'count': 820}, {'lng': 119.405391, 'lat': 26.251887, 'count': 1890}, {'lng': 109.748892, 'lat': 18.363273, 'count': 860}, {'lng': 119.744673, 'lat': 30.627035, 'count': 744}, {'lng': 118.787634, 'lat': 32.015811, 'count': 1120}, {'lng': 116.396015, 'lat': 39.999061, 'count': 862}, {'lng': 109.542853, 'lat': 18.255356, 'count': 368}, {'lng': 113.553944, 'lat': 22.105303, 'count': 1014}, {'lng': 112.906583, 'lat': 24.158095, 'count': 2000}, {'lng': 116.404547, 'lat': 39.903732, 'count': 424}, {'lng': 109.710973, 'lat': 18.31892, 'count': 742}, {'lng': 128.077815, 'lat': 42.026217, 'count': 1224}, {'lng': 110.489286, 'lat': 29.117652, 'count': 804}, {'lng': 121.499109, 'lat': 31.231135, 'count': 600}, {'lng': 110.707728, 'lat': 29.401278, 'count': 542}, {'lng': 109.503109, 'lat': 18.330452, 'count': 288}, {'lng': 118.721425, 'lat': 31.811687, 'count': 438}, {'lng': 118.972, 'lat': 25.742, 'count': 180}, {'lng': 117.985736, 'lat': 27.644453, 'count': 484}, {'lng': 117.310454, 'lat': 31.697388, 'count': 94}, {'lng': 116.885221, 'lat': 36.709359, 'count': 356}, {'lng': 120.277007, 'lat': 31.456184, 'count': 828}, {'lng': 117.27613, 'lat': 40.650819, 'count': 8}, {'lng': 118.187456, 'lat': 24.539893, 'count': 234}, {'lng': 113.86935, 'lat': 38.725471, 'count': 288}, {'lng': 104.187816, 'lat': 30.441917, 'count': 104}, {'lng': 112.483486, 'lat': 23.084494, 'count': 1514}, {'lng': 109.265495, 'lat': 34.385836, 'count': 392}, {'lng': 119.405825, 'lat': 26.253012, 'count': 478}, {'lng': 110.438282, 'lat': 25.153169, 'count': 432}, {'lng': 110.475312, 'lat': 24.774335, 'count': 350}, {'lng': 120.70329, 'lat': 36.404835, 'count': 96}, {'lng': 117.206871, 'lat': 39.140884, 'count': 80}, {'lng': 117.201171, 'lat': 39.15063, 'count': 130}, {'lng': 119.020995, 'lat': 29.600519, 'count': 516}, {'lng': 110.493873, 'lat': 29.054255, 'count': 346}, {'lng': 123.749516, 'lat': 41.893604, 'count': 16}, {'lng': 100.211847, 'lat': 26.922349, 'count': 324}, {'lng': 115.887151, 'lat': 28.6865, 'count': 422}, {'lng': 119.812638, 'lat': 25.506354, 'count': 84}, {'lng': 113.999367, 'lat': 28.915724, 'count': 272}, {'lng': 103.449416, 'lat': 29.569811, 'count': 80}, {'lng': 117.309443, 'lat': 31.707828, 'count': 148}, {'lng': 117.252319, 'lat': 36.158398, 'count': 112}, {'lng': 121.458014, 'lat': 37.525422, 'count': 214}, {'lng': 118.131359, 'lat': 24.436317, 'count': 32}, {'lng': 115.601074, 'lat': 39.640937, 'count': 122}, {'lng': 120.304822, 'lat': 29.183043, 'count': 172}, {'lng': 119.43235, 'lat': 25.690738, 'count': 216}, {'lng': 143.668968523873, 'lat': -38.7544153661495, 'count': 12}, {'lng': 113.96541, 'lat': 38.206852, 'count': 54}, {'lng': 115.634944, 'lat': 39.642981, 'count': 60}, {'lng': 112.730389, 'lat': 37.878542, 'count': 42}, {'lng': 119.430334, 'lat': 26.21189, 'count': 94}, {'lng': 117.241154, 'lat': 42.538855, 'count': 26}, {'lng': 113.561087, 'lat': 34.486188, 'count': 140}, {'lng': 117.325201, 'lat': 31.711221, 'count': 78}, {'lng': 100.265002, 'lat': 27.103086, 'count': 332}, {'lng': 115.236594, 'lat': 39.289527, 'count': 70}, {'lng': 125.237649, 'lat': 41.130914, 'count': 58}, {'lng': -0.119543000000021, 'lat': 51.503324, 'count': 38}, {'lng': 129.43432, 'lat': 42.809423, 'count': 100}, {'lng': 126.722573, 'lat': 45.955954, 'count': 100}, {'lng': 106.5897, 'lat': 29.54506, 'count': 8}, {'lng': 109.553059, 'lat': 24.392098, 'count': 106}, {'lng': 119.301187, 'lat': 26.113123, 'count': 62}, {'lng': 103.74818, 'lat': 31.085664, 'count': 26}, {'lng': 109.546165, 'lat': 24.390916, 'count': 154}, {'lng': 113.043333, 'lat': 23.503261, 'count': 228}, {'lng': 119.350722, 'lat': 40.102345, 'count': 114}, {'lng': 120.866203, 'lat': 32.047203, 'count': 80}, {'lng': 109.698204, 'lat': 18.332954, 'count': 240}, {'lng': 88.139294, 'lat': 43.894016, 'count': 72}, {'lng': 104.050611, 'lat': 30.606115, 'count': 10}, {'lng': 115.601201, 'lat': 39.640744, 'count': 20}, {'lng': 109.748051, 'lat': 18.360402, 'count': 254}, {'lng': 109.74786, 'lat': 18.36045, 'count': 150}, {'lng': 113.556867, 'lat': 34.487982, 'count': 62}, {'lng': 106.579295, 'lat': 29.580896, 'count': 230}, {'lng': 151.241912506521, 'lat': -33.8430216712914, 'count': 74}, {'lng': 119.320286, 'lat': 26.105052, 'count': 34}, {'lng': 139.810700803995, 'lat': 35.7100628453748, 'count': 82}, {'lng': 110.577842, 'lat': 29.351997, 'count': 234}, {'lng': 122.025807, 'lat': 37.507714, 'count': 198}, {'lng': 119.268584, 'lat': 26.401299, 'count': 28}, {'lng': 119.399903, 'lat': 26.245595, 'count': 46}, {'lng': 119.215445, 'lat': 26.130259, 'count': 44}, {'lng': 113.600804, 'lat': 28.416341, 'count': 108}, {'lng': 119.793127, 'lat': 25.467501, 'count': 54}, {'lng': 117.978881, 'lat': 27.648652, 'count': 12}, {'lng': 118.924528, 'lat': 26.399017, 'count': 110}, {'lng': 117.028281, 'lat': 36.667555, 'count': 72}, {'lng': 107.195225, 'lat': 29.046892, 'count': 88}, {'lng': 118.342849, 'lat': 31.629818, 'count': 14}, {'lng': 110.479074, 'lat': 29.071452, 'count': 66}, {'lng': 120.484948, 'lat': 41.556159, 'count': 28}, {'lng': 145.203842910739, 'lat': -38.489864056211, 'count': 22}, {'lng': 151.201508, 'lat': -33.869791, 'count': 6}, {'lng': 116.863701, 'lat': 25.12184, 'count': 54}, {'lng': 118.394036, 'lat': 39.18869, 'count': 8}, {'lng': 120.092088, 'lat': 30.957888, 'count': 30}, {'lng': 110.487262, 'lat': 29.048478, 'count': 58}, {'lng': 120.271389, 'lat': 31.432554, 'count': 118}, {'lng': 120.276152, 'lat': 29.125402, 'count': 8}, {'lng': 120.271389, 'lat': 31.432554, 'count': 82}, {'lng': 109.511625, 'lat': 18.314062, 'count': 98}, {'lng': 109.490639, 'lat': 18.340507, 'count': 50}, {'lng': 125.344623, 'lat': 41.168389, 'count': 74}, {'lng': 119.410188, 'lat': 26.252166, 'count': 44}, {'lng': 0.0, 'lat': 0.0, 'count': 88}, {'lng': 120.336113, 'lat': 29.185583, 'count': 64}, {'lng': 135.843, 'lat': 34.6850555555556, 'count': 8}, {'lng': 119.835148, 'lat': 25.589205, 'count': 28}, {'lng': 109.746498, 'lat': 18.349891, 'count': 4}, {'lng': 117.170492, 'lat': 40.697861, 'count': 26}, {'lng': 135.8398158, 'lat': 34.6889851, 'count': 4}, {'lng': 120.271389, 'lat': 31.432554, 'count': 98}, {'lng': 121.805977, 'lat': 29.184745, 'count': 4}, {'lng': 117.165058, 'lat': 42.551154, 'count': 8}, {'lng': 120.110502, 'lat': 35.913103, 'count': 12}, {'lng': 117.280627, 'lat': 40.659778, 'count': 52}, {'lng': 119.794321, 'lat': 25.510142, 'count': 22}, {'lng': 120.833692, 'lat': 40.660097, 'count': 76}, {'lng': 120.10689, 'lat': 35.911506, 'count': 70}, {'lng': 117.281931, 'lat': 40.659378, 'count': 48}, {'lng': 117.750551, 'lat': 39.052873, 'count': 79}, {'lng': 117.239879, 'lat': 31.808743, 'count': 53}, {'lng': 2.15356380000003, 'lat': 41.4144423, 'count': 94}, {'lng': 128.12115, 'lat': 42.444814, 'count': 92}, {'lng': 119.638315, 'lat': 26.202311, 'count': 50}, {'lng': 110.066536, 'lat': 25.247309, 'count': 8}, {'lng': 115.591692, 'lat': 39.642714, 'count': 20}, {'lng': 115.675406, 'lat': 39.625342, 'count': 74}, {'lng': 117.207256, 'lat': 39.139199, 'count': 4}, {'lng': 112.845352, 'lat': 23.792878, 'count': 28}, {'lng': 118.760314, 'lat': 39.746725, 'count': 66}, {'lng': 117.172195, 'lat': 40.689651, 'count': 42}, {'lng': 118.601174, 'lat': 25.806573, 'count': 33}, {'lng': 115.273256, 'lat': 39.404772, 'count': 12}, {'lng': 113.210909, 'lat': 22.646067, 'count': 4}, {'lng': 118.803931, 'lat': 32.133416, 'count': 12}, {'lng': 116.28716, 'lat': 39.873193, 'count': 2}, {'lng': 109.951515, 'lat': 39.85019, 'count': 14}, {'lng': 122.245769, 'lat': 40.243109, 'count': 82}, {'lng': 122.128667, 'lat': 40.263717, 'count': 89}, {'lng': 116.447897, 'lat': 40.247723, 'count': 4}, {'lng': 106.582631, 'lat': 29.42761, 'count': 48}, {'lng': 127.810294, 'lat': 42.52712, 'count': 16}, {'lng': 120.261251, 'lat': 29.112743, 'count': 78}, {'lng': 119.351502, 'lat': 26.22009, 'count': 4}, {'lng': 115.552856, 'lat': 39.665703, 'count': 10}, {'lng': 103.268273, 'lat': 30.57008, 'count': 2}, {'lng': 117.038713, 'lat': 36.670288, 'count': 18}, {'lng': 122.353295, 'lat': 39.165344, 'count': 61}, {'lng': 122.254529, 'lat': 40.249698, 'count': 62}, {'lng': 145.353657, 'lat': -37.908382, 'count': 16}, {'lng': 120.004452, 'lat': 31.831024, 'count': 63}, {'lng': 117.029527, 'lat': 36.675147, 'count': 8}, {'lng': 120.276955, 'lat': 29.117966, 'count': 47}, {'lng': 146.741207, 'lat': -17.711625, 'count': 30}, {'lng': 120.262078, 'lat': 29.114675, 'count': 10}, {'lng': 119.566624, 'lat': 29.896333, 'count': 38}, {'lng': 139.7760447, 'lat': 35.6307374, 'count': 4}, {'lng': 119.77883, 'lat': 25.416332, 'count': 6}, {'lng': 106.642868, 'lat': 33.154897, 'count': 61}, {'lng': 119.588342, 'lat': 40.160091, 'count': 4}, {'lng': 117.442785, 'lat': 40.296203, 'count': 88}, {'lng': 135.493925, 'lat': 34.6691616, 'count': 31}, {'lng': 124.81908, 'lat': 40.416014, 'count': 4}, {'lng': 116.604649, 'lat': 39.930941, 'count': 6}, {'lng': 106.57575, 'lat': 29.595058, 'count': 10}, {'lng': 107.342292, 'lat': 24.147137, 'count': 8}, {'lng': 117.630166, 'lat': 38.853411, 'count': 33}, {'lng': 135.2282052, 'lat': 34.4320024, 'count': 88}, {'lng': 0.0, 'lat': 0.0, 'count': 4}, {'lng': 135.19551, 'lat': 34.690083, 'count': 83}, {'lng': 117.031725, 'lat': 36.675277, 'count': 63}, {'lng': 117.031835, 'lat': 36.677426, 'count': 75}, {'lng': 115.591567, 'lat': 39.643843, 'count': 4}, {'lng': 2.17619909999996, 'lat': 41.383962, 'count': 39}, {'lng': 128.077815, 'lat': 42.026219, 'count': 39}, {'lng': 135.24679, 'lat': 34.797924, 'count': 31}, {'lng': 107.105552, 'lat': 22.649759, 'count': 35}, {'lng': 110.058086, 'lat': 34.532881, 'count': 4}, {'lng': 141.3477324, 'lat': 43.0599007, 'count': 79}, {'lng': 117.115675, 'lat': 36.261998, 'count': 56}, {'lng': 117.022995, 'lat': 36.667925, 'count': 66}, {'lng': 117.284868, 'lat': 40.659311, 'count': 99}, {'lng': 54.9358612, 'lat': 24.916356, 'count': 76}, {'lng': 118.444693, 'lat': 29.876102, 'count': 97}, {'lng': 117.201471, 'lat': 42.537207, 'count': 98}, {'lng': 143.668968523873, 'lat': -38.7543986326771, 'count': 30}, {'lng': 141.340013, 'lat': 43.0779575, 'count': 87}, {'lng': 55.0060662, 'lat': 24.9209673, 'count': 67}, {'lng': 119.83416, 'lat': 25.551253, 'count': 86}, {'lng': 129.580226, 'lat': 42.806283, 'count': 63}, {'lng': 106.575554, 'lat': 29.428145, 'count': 61}, {'lng': 141.148666666667, 'lat': 42.4976388888889, 'count': 6}, {'lng': 121.986253, 'lat': 41.273981, 'count': 2}, {'lng': 135.263722222222, 'lat': 34.7778888888889, 'count': 61}, {'lng': 117.691042, 'lat': 35.840366, 'count': 71}, {'lng': 122.00666, 'lat': 42.866862, 'count': 95}, {'lng': 151.2107871, 'lat': -33.8523063, 'count': 73}, {'lng': 135.848385483027, 'lat': 34.68138031254, 'count': 59}, {'lng': 122.092095, 'lat': 40.225911, 'count': 47}, {'lng': 143.001373, 'lat': -38.610432, 'count': 6}, {'lng': 126.2825, 'lat': 41.168044, 'count': 55}, {'lng': 2.18985892402929, 'lat': 41.3863324603993, 'count': 43}, {'lng': 135.735111111111, 'lat': 35.0314166666667, 'count': 58}, {'lng': 114.845937, 'lat': 39.010201, 'count': 43}, {'lng': 142.427995, 'lat': 43.418149, 'count': 88}, {'lng': 103.714815, 'lat': 30.712283, 'count': 0}, {'lng': 140.9699651, 'lat': 43.1676311218584, 'count': 88}, {'lng': 128.12868580389, 'lat': 42.435379305378, 'count': 89}, {'lng': 151.266460478306, 'lat': -33.8732733633383, 'count': 69}, {'lng': 135.86696962507, 'lat': 34.3604331822226, 'count': 73}, {'lng': 135.775475, 'lat': 35.001812, 'count': 37}, {'lng': 139.733833, 'lat': 35.662029, 'count': 36}, {'lng': 139.7631443, 'lat': 35.6365639, 'count': 47}, {'lng': 147.699192181229, 'lat': -18.2870671744257, 'count': 99}, {'lng': 151.1925959, 'lat': -33.873102, 'count': 46}, {'lng': -0.213193, 'lat': 51.434006, 'count': 33}, {'lng': 2.17158530000006, 'lat': 41.3817399, 'count': 31}, {'lng': 126.238499, 'lat': 41.165564, 'count': 89}, {'lng': -0.126138, 'lat': 51.501057, 'count': 94}, {'lng': 111.258552, 'lat': 26.138158, 'count': 2}, {'lng': 119.787429, 'lat': 25.451311, 'count': 89}, {'lng': 135.705785, 'lat': 35.024104, 'count': 49}, {'lng': 113.13802, 'lat': 28.812816, 'count': 65}, {'lng': 135.4386783, 'lat': 35.0984358, 'count': 52}, {'lng': 119.402192, 'lat': 39.777169, 'count': 42}, {'lng': 117.136937, 'lat': 42.662754, 'count': 92}, {'lng': 118.442477, 'lat': 29.871149, 'count': 31}, {'lng': 41.609951, 'lat': 2.343767, 'count': 83}, {'lng': 117.028807, 'lat': 36.672411, 'count': 4}, {'lng': 0.0, 'lat': 0.0, 'count': 79}, {'lng': 117.222564, 'lat': 42.536311, 'count': 63}, {'lng': 118.08843, 'lat': 24.46063, 'count': 43}, {'lng': 121.773912, 'lat': 42.736378, 'count': 78}, {'lng': 145.9886342, 'lat': -16.6575167, 'count': 62}, {'lng': 112.234511, 'lat': 22.594517, 'count': 37}, {'lng': 117.111901, 'lat': 36.263423, 'count': 56}, {'lng': 117.136759, 'lat': 36.207423, 'count': 47}, {'lng': 117.283538, 'lat': 40.659002, 'count': 68}, {'lng': 117.119388, 'lat': 36.25236, 'count': 59}, {'lng': 141.006883, 'lat': 43.192118, 'count': 61}, {'lng': 151.22284913063, 'lat': -33.875531108163, 'count': 73}, {'lng': 122.300342, 'lat': 29.950269, 'count': 97}, {'lng': 114.43083, 'lat': 36.514686, 'count': 0}, {'lng': 144.9619114021, 'lat': -37.8429355385701, 'count': 97}, {'lng': 144.971650511027, 'lat': -37.8046896192264, 'count': 74}, {'lng': 151.216944, 'lat': -33.863889, 'count': 89}, {'lng': 0.0, 'lat': 0.0, 'count': 34}, {'lng': 140.83177, 'lat': 42.538143, 'count': 82}, {'lng': 117.030133, 'lat': 36.678095, 'count': 62}, {'lng': 141.314236, 'lat': 43.054531, 'count': 47}, {'lng': -0.005798682, 'lat': 51.483207012, 'count': 89}, {'lng': -0.086594, 'lat': 51.509872, 'count': 47}, {'lng': 135.203872, 'lat': 34.676774, 'count': 51}, {'lng': 135.19551, 'lat': 34.690083, 'count': 82}, {'lng': 0.0, 'lat': 0.0, 'count': 53}, {'lng': 0.0, 'lat': 0.0, 'count': 76}, {'lng': 0.0, 'lat': 0.0, 'count': 71}, {'lng': 140.842467, 'lat': 42.633516, 'count': 51}, {'lng': 151.209457, 'lat': -33.86264, 'count': 45}, {'lng': 141.005694, 'lat': 43.2317123, 'count': 77}, {'lng': 135.263722222222, 'lat': 34.7778888888889, 'count': 74}, {'lng': 122.00666, 'lat': 42.866862, 'count': 62}, {'lng': 117.691042, 'lat': 35.840366, 'count': 87}, {'lng': 118.10388, 'lat': 24.526026, 'count': 6}, {'lng': 151.2107871, 'lat': -33.8523063, 'count': 52}, {'lng': 135.848385483027, 'lat': 34.68138031254, 'count': 41}, {'lng': 122.092095, 'lat': 40.225911, 'count': 79}, {'lng': 126.2825, 'lat': 41.168044, 'count': 44}, {'lng': 143.001373, 'lat': -38.610432, 'count': 6}, {'lng': 135.735111111111, 'lat': 35.0314166666667, 'count': 56}, {'lng': 114.845937, 'lat': 39.010201, 'count': 98}, {'lng': 117.383484, 'lat': 40.137052, 'count': 93}, {'lng': 114.610406, 'lat': 39.095608, 'count': 20}, {'lng': 127.95858553643, 'lat': 41.528033146323, 'count': 8}, {'lng': 112.730209, 'lat': 28.51036, 'count': 65}, {'lng': 114.610408, 'lat': 39.095609, 'count': 56}, {'lng': 104.080914, 'lat': 30.50059, 'count': 3509}, {'lng': 117.668338, 'lat': 39.01374, 'count': 2409}, {'lng': 116.405132, 'lat': 40.012256, 'count': 514}, {'lng': 117.193805, 'lat': 39.160233, 'count': 70}, {'lng': 103.803879, 'lat': 30.395234, 'count': 652}, {'lng': 117.8387228365, 'lat': 39.0188011112, 'count': 80}, {'lng': 113.376424, 'lat': 40.068704, 'count': 240}, {'lng': 116.159617, 'lat': 39.812013, 'count': 212}, {'lng': 117.444724, 'lat': 38.933377, 'count': 56}, {'lng': 119.306168, 'lat': 39.632046, 'count': 76}, {'lng': 118.54869, 'lat': 26.152314, 'count': 176}, {'lng': 115.530775, 'lat': 39.674023, 'count': 38}, {'lng': 115.996969, 'lat': 23.581571, 'count': 38}, {'lng': 115.24968, 'lat': 39.293775, 'count': 22}, {'lng': 116.044362, 'lat': 40.344683, 'count': 24}, {'lng': 116.766332, 'lat': 23.352037, 'count': 52}, {'lng': 128.141333, 'lat': 42.611172, 'count': 62}, {'lng': 122.116037, 'lat': 40.241856, 'count': 57}, {'lng': 117.747047, 'lat': 34.563186, 'count': 10337}, {'lng': 109.673664, 'lat': 18.456698, 'count': 572}, {'lng': 100.251243, 'lat': 27.131616, 'count': 388}, {'lng': 120.324056, 'lat': 29.144327, 'count': 224}, {'lng': 120.317836, 'lat': 29.146622, 'count': 382}, {'lng': 120.309737, 'lat': 29.176594, 'count': 214}, {'lng': 120.107115, 'lat': 31.433007, 'count': 200}];
    // 下面是百度默认给的模板数据，可以打开看看效果
    // var points =[
    // {"lng":116.418261,"lat":39.921984,"count":50000},
    // {"lng":116.423332,"lat":39.916532,"count":51000},
    // {"lng":116.419787,"lat":39.930658,"count":15000},
    // {"lng":116.418455,"lat":39.920921,"count":4000},
    // {"lng":116.418843,"lat":39.915516,"count":100000},
    // {"lng":116.42546,"lat":39.918503,"count":6},
    // {"lng":116.423289,"lat":39.919989,"count":18},
    // {"lng":116.418162,"lat":39.915051,"count":80},
    // {"lng":116.422039,"lat":39.91782,"count":11},
    // {"lng":116.41387,"lat":39.917253,"count":7},
    // {"lng":116.41773,"lat":39.919426,"count":42},
    // {"lng":116.421107,"lat":39.916445,"count":4},
    // {"lng":116.417521,"lat":39.917943,"count":27},
    // {"lng":116.419812,"lat":39.920836,"count":23},
    // {"lng":116.420682,"lat":39.91463,"count":60},
    // {"lng":116.415424,"lat":39.924675,"count":8},
    // {"lng":116.419242,"lat":39.914509,"count":15},
    // {"lng":116.422766,"lat":39.921408,"count":25},
    // {"lng":116.421674,"lat":39.924396,"count":21},
    // {"lng":116.427268,"lat":39.92267,"count":1},
    // {"lng":116.417721,"lat":39.920034,"count":51},
    // {"lng":116.412456,"lat":39.92667,"count":7},
    // {"lng":116.420432,"lat":39.919114,"count":11},
    // {"lng":116.425013,"lat":39.921611,"count":35},
    // {"lng":116.418733,"lat":39.931037,"count":22},
    // {"lng":116.419336,"lat":39.931134,"count":4},
    // {"lng":116.413557,"lat":39.923254,"count":5},
    // {"lng":116.418367,"lat":39.92943,"count":3},
    // {"lng":116.424312,"lat":39.919621,"count":100},
    // {"lng":116.423874,"lat":39.919447,"count":87},
    // {"lng":116.424225,"lat":39.923091,"count":32},
    // {"lng":116.417801,"lat":39.921854,"count":44},
    // {"lng":116.417129,"lat":39.928227,"count":21},
    // {"lng":116.426426,"lat":39.922286,"count":80},
    // {"lng":116.421597,"lat":39.91948,"count":32},
    // {"lng":116.423895,"lat":39.920787,"count":26},
    // {"lng":116.423563,"lat":39.921197,"count":17},
    // {"lng":116.417982,"lat":39.922547,"count":17},
    // {"lng":116.426126,"lat":39.921938,"count":25},
    // {"lng":116.42326,"lat":39.915782,"count":100},
    // {"lng":116.419239,"lat":39.916759,"count":39},
    // {"lng":116.417185,"lat":39.929123,"count":11},
    // {"lng":116.417237,"lat":39.927518,"count":9},
    // {"lng":116.417784,"lat":39.915754,"count":47},
    // {"lng":116.420193,"lat":39.917061,"count":52},
    // {"lng":116.422735,"lat":39.915619,"count":100},
    // {"lng":116.418495,"lat":39.915958,"count":46},
    // {"lng":116.416292,"lat":39.931166,"count":9},
    // {"lng":116.419916,"lat":39.924055,"count":8},
    // {"lng":116.42189,"lat":39.921308,"count":11},
    // {"lng":116.413765,"lat":39.929376,"count":3},
    // {"lng":116.418232,"lat":39.920348,"count":50},
    // {"lng":116.417554,"lat":39.930511,"count":15},
    // {"lng":116.418568,"lat":39.918161,"count":23},
    // {"lng":116.413461,"lat":39.926306,"count":3},
    // {"lng":116.42232,"lat":39.92161,"count":13},
    // {"lng":116.4174,"lat":39.928616,"count":6},
    // {"lng":116.424679,"lat":39.915499,"count":21},
    // {"lng":116.42171,"lat":39.915738,"count":29},
    // {"lng":116.417836,"lat":39.916998,"count":99},
    // {"lng":116.420755,"lat":39.928001,"count":10},
    // {"lng":116.414077,"lat":39.930655,"count":14},
    // {"lng":116.426092,"lat":39.922995,"count":16},
    // {"lng":116.41535,"lat":39.931054,"count":15},
    // {"lng":116.413022,"lat":39.921895,"count":13},
    // {"lng":116.415551,"lat":39.913373,"count":17},
    // {"lng":116.421191,"lat":39.926572,"count":1},
    // {"lng":116.419612,"lat":39.917119,"count":9},
    // {"lng":116.418237,"lat":39.921337,"count":54},
    // {"lng":116.423776,"lat":39.921919,"count":26},
    // {"lng":116.417694,"lat":39.92536,"count":17},
    // {"lng":116.415377,"lat":39.914137,"count":19},
    // {"lng":116.417434,"lat":39.914394,"count":43},
    // {"lng":116.42588,"lat":39.922622,"count":27},
    // {"lng":116.418345,"lat":39.919467,"count":8},
    // {"lng":116.426883,"lat":39.917171,"count":3},
    // {"lng":116.423877,"lat":39.916659,"count":34},
    // {"lng":116.415712,"lat":39.915613,"count":14},
    // {"lng":116.419869,"lat":39.931416,"count":12},
    // {"lng":116.416956,"lat":39.925377,"count":11},
    // {"lng":116.42066,"lat":39.925017,"count":38},
    // {"lng":116.416244,"lat":39.920215,"count":91},
    // {"lng":116.41929,"lat":39.915908,"count":54},
    // {"lng":116.422116,"lat":39.919658,"count":21},
    // {"lng":116.4183,"lat":39.925015,"count":15},
    // {"lng":116.421969,"lat":39.913527,"count":3},
    // {"lng":116.422936,"lat":39.921854,"count":24},
    // {"lng":116.41905,"lat":39.929217,"count":12},
    // {"lng":116.424579,"lat":39.914987,"count":57},
    // {"lng":116.42076,"lat":39.915251,"count":70},
    // {"lng":116.425867,"lat":39.918989,"count":8}];

    if(!isSupportCanvas()){
    	alert('热力图目前只支持有canvas支持的浏览器,您所使用的浏览器不能使用热力图功能~')
    }
	//详细的参数,可以查看heatmap.js的文档 https://github.com/pa7/heatmap.js/blob/master/README.md
	//参数说明如下:
	/* visible 热力图是否显示,默认为true
     * opacity 热力的透明度,1-100
     * radius 势力图的每个点的半径大小
     * gradient  {JSON} 热力图的渐变区间 . gradient如下所示
     *	{
			.2:'rgb(0, 255, 255)',
			.5:'rgb(0, 110, 255)',
			.8:'rgb(100, 0, 255)'
		}
		其中 key 表示插值的位置, 0~1.
		    value 为颜色值.
     */
	heatmapOverlay = new BMapLib.HeatmapOverlay({"radius":20});
	map.addOverlay(heatmapOverlay);
	heatmapOverlay.setDataSet({data:points,max:100});
	//是否显示热力图
    function openHeatmap(){
        heatmapOverlay.show();
    }
	function closeHeatmap(){
        heatmapOverlay.hide();
    }
	closeHeatmap();
    function setGradient(){
     	/*格式如下所示:
		{
	  		0:'rgb(102, 255, 0)',
	 	 	.5:'rgb(255, 170, 0)',
		  	1:'rgb(255, 0, 0)'
		}*/
     	var gradient = {};
     	var colors = document.querySelectorAll("input[type='color']");
     	colors = [].slice.call(colors,0);
     	colors.forEach(function(ele){
			gradient[ele.getAttribute("data-key")] = ele.value;
     	});
        heatmapOverlay.setOptions({"gradient":gradient});
    }
	//判断浏览区是否支持canvas
    function isSupportCanvas(){
        var elem = document.createElement('canvas');
        return !!(elem.getContext && elem.getContext('2d'));
    }
</script>